import request from '@/utils/request';
import systemConfig from '@/utils/config';

const baseUrl = `${systemConfig.serverProxy}/trade-order`;

/**
 * 收银台查询
 * @returns {Promise<void>}
 */
export const initCash = async (payload,config) => {
  return await request.postRequest(`${baseUrl}/open/cashier`, payload, config);;
};


/**
 * 支付
 * @returns {Promise<void>}
 */
export const initPay = async (payload,config) => {
  return await request.postRequest(`${baseUrl}/open/pay`, payload, config);;
};
